gdk_pixmap_draw_pixbuf - gc may be NULL
authorAlexander Larsson <alexl@redhat.com>
Thu, 4 Dec 2008 21:15:56 +0000 (22:15 +0100)
committerAlexander Larsson <alex@localhost.localdomain>
Thu, 2 Apr 2009 08:14:06 +0000 (10:14 +0200)
gdk/gdkpixmap.c

index cb99cb76ab853eee13dcbdd3c124699da6b0a93d..be1d3a2d41a290093a0973cd53dd9c18e4fcd25c 100644 (file)
@@ -478,7 +478,8 @@ gdk_pixmap_draw_pixbuf (GdkDrawable     *drawable,
 {
   GdkPixmapObject *private = (GdkPixmapObject *)drawable;
 
-  _gdk_gc_remove_drawable_clip (gc);  
+  if (gc)
+    _gdk_gc_remove_drawable_clip (gc);  
   gdk_draw_pixbuf (private->impl, gc, pixbuf,
                   src_x, src_y, dest_x, dest_y, width, height,
                   dither, x_dither, y_dither);